package state;

import state.status.*;

public class Main {
    public static void main(String[] args) {
        GateStateContext context=new GateStateContext();
        context.setGateState(new StayOpen());
        context.execute();
        context.setGateState(new Closing());
        context.execute();
        context.setGateState(new Closed());
        context.execute();
        context.setGateState(new Opening());
        context.execute();
        context.setGateState(new Open());
        context.execute();
    }
}
